#include "mainwindow.h"
#include <QApplication>

#include <QFile>
#include <QTextStream>

void initQss()
{
    QFile file(":/css/app.css");
    if (file.open(QIODevice::ReadOnly)) {
        QTextStream in(&file);
        QString css = in.readAll();
        qApp->setStyleSheet(css);
        qApp->setFont(QFont("微软雅黑", 9));
    }
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    initQss();
    MainWindow w;
    w.show();
    return a.exec();
}
